#include <iostream>
#include <algorithm>
using namespace std;

#include "arrayCalc.h"
using namespace doa14;


int main()
{
	int a[] = { 1, 2, 3, 4};
	double b[] = { 5.12, 3.1415, 5000.1, 300.356, 45647844573473473, 10 };

	cout << "sum(a) = " << arrayCalc<int>::sum(a, sizeof(a) / sizeof(int)) << endl;
	cout << "prod(b) = " << arrayCalc<double>::prod(b, sizeof(b) / sizeof(double)) << endl;
	cout << "avg(b) = " << arrayCalc<double>::avg(b, sizeof(b) / sizeof(double)) << endl;
	

	system("pause");
	return 0;
}

